﻿var head = "#fUI/UIWindow2.img/Quest/quest_info/summary_icon/summary#\r\n";
var icon = "#fUI/UIWindow/Minigame/Common/mark#";
var sl1 = 0;//兑换数量

var status = -1;

function start() {
    action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == 1) {
		status++;
	} else {
		if (status >= 0) {
			cm.dispose();
			return;
		}
		status--;
	}
          if (status == 0) {


    if (cm.getPlayerStat("LVL") > 10) {

			var text = "玩家#r#h0# #k由于被测谎问题，现在您可以点击下一步将送您返回市场。\r\n\r\n";
				//text += "· 本服为仿官方模式\r\n";
			cm.sendSimple(text);
		} else {
			cm.dispose();
			//cm.worldSpouseMessage(0x14,"★★★★★★★『新手驾到』：【"+ cm.getChar().getName() +"】 成功偷渡来到了" + cm.getServerName() +"!★★★★★★★");
			cm.sendOk("等级小于10级。");
			cm.dispose();
		}
	} else if (status == 1) {
		cm.dispose();
		cm.warp(910000000);
		//cm.worldSpouseMessage(0x15,"『新手驾到』：天空一声巨响,不明飞行物品 "+ cm.getChar().getName() +" 掉进了梦想帝国!");
	}
}





